<template>
    首页
    <svg>
        <use xlink:href="#icon-vue"></use>
    </svg>
    <el-button type="primary" @click="login()">Primary</el-button>
</template>

<script setup lang="ts">
import { useUserStoreWithOut } from "@/store/modules/user";
const useUserStore = useUserStoreWithOut()
const login = () => {
    useUserStore.login({ username: 'admin', password: '123456' }).then(res => {
        console.log(res)
    })
}

</script>